package com.supermarket.manage.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-01-30 10:24
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分页数据对象")
public class PageBean<T> implements Serializable {

    private static final long serialVersionUID = -9146664198550023077L;

    /**
     * 页数
     */
    @ApiModelProperty(value = "页数")
    private Integer page;

    /**
     * 单页条数
     */
    @ApiModelProperty(value = "单页条数")
    private Integer size;

    /**
     * 数据列表
     */
    @ApiModelProperty(value = "数据列表")
    private List<T> dataList;

    /**
     * 数据总数
     */
    @ApiModelProperty(value = "数据总数")
    private Long total;
}
